package org.sdp.pearproject.dto.convert;

import org.sdp.pearproject.dao.domain.*;
import org.sdp.pearproject.dto.request.*;
import java.util.Date;

/**
 * @ClassName: ProjectForTaskLogRequestConvert
 * @Description:
 * @Author: SDP
 * @Date: 2022-11-14
 * @Version: 1.0
 * Table: pear_project
 * Comment:
 * 项目表
 */
public class ProjectForTaskLogRequestConvert extends BaseConvert {
    public static ProjectForTaskLog convert(ProjectForTaskLogRequest request) throws Exception {
        ProjectForTaskLog daoRequest = new ProjectForTaskLog();
        copyProperties(request, daoRequest);

        daoRequest.setCode(daoRequest.getCode() == null ? null : daoRequest.getCode().trim());
        daoRequest.setType(daoRequest.getType() == null ? null : daoRequest.getType().trim());
        daoRequest.setCreateTime(daoRequest.getCreateTime() == null ? null : daoRequest.getCreateTime().trim());
        daoRequest.setSourceCode(daoRequest.getSourceCode() == null ? null : daoRequest.getSourceCode().trim());
        daoRequest.setActionType(daoRequest.getActionType() == null ? null : daoRequest.getActionType().trim());
        daoRequest.setToMemberCode(daoRequest.getToMemberCode() == null ? null : daoRequest.getToMemberCode().trim());
        daoRequest.setProjectCode(daoRequest.getProjectCode() == null ? null : daoRequest.getProjectCode().trim());
        daoRequest.setIcon(daoRequest.getIcon() == null ? null : daoRequest.getIcon().trim());
        daoRequest.setContent(daoRequest.getContent() == null ? null : daoRequest.getContent().trim());
        daoRequest.setRemark(daoRequest.getRemark() == null ? null : daoRequest.getRemark().trim());
        daoRequest.setMemberAccount(daoRequest.getMemberAccount() == null ? null : daoRequest.getMemberAccount().trim());
        daoRequest.setMemberPassword(daoRequest.getMemberPassword() == null ? null : daoRequest.getMemberPassword().trim());
        daoRequest.setMemberName(daoRequest.getMemberName() == null ? null : daoRequest.getMemberName().trim());
        daoRequest.setMemberMobile(daoRequest.getMemberMobile() == null ? null : daoRequest.getMemberMobile().trim());
        daoRequest.setMemberRealname(daoRequest.getMemberRealname() == null ? null : daoRequest.getMemberRealname().trim());
        daoRequest.setMemberCreateTime(daoRequest.getMemberCreateTime() == null ? null : daoRequest.getMemberCreateTime().trim());
        daoRequest.setMemberLastLoginTime(daoRequest.getMemberLastLoginTime() == null ? null : daoRequest.getMemberLastLoginTime().trim());
        daoRequest.setMemberSex(daoRequest.getMemberSex() == null ? null : daoRequest.getMemberSex().trim());
        daoRequest.setMemberAvatar(daoRequest.getMemberAvatar() == null ? null : daoRequest.getMemberAvatar().trim());
        daoRequest.setMemberIdcard(daoRequest.getMemberIdcard() == null ? null : daoRequest.getMemberIdcard().trim());
        daoRequest.setMemberAddress(daoRequest.getMemberAddress() == null ? null : daoRequest.getMemberAddress().trim());
        daoRequest.setMemberEmail(daoRequest.getMemberEmail() == null ? null : daoRequest.getMemberEmail().trim());
        daoRequest.setMemberCode(daoRequest.getMemberCode() == null ? null : daoRequest.getMemberCode().trim());
        daoRequest.setMemberDingtalkOpenid(daoRequest.getMemberDingtalkOpenid() == null ? null : daoRequest.getMemberDingtalkOpenid().trim());
        daoRequest.setMemberDingtalkUnionid(daoRequest.getMemberDingtalkUnionid() == null ? null : daoRequest.getMemberDingtalkUnionid().trim());
        daoRequest.setMemberDingtalkUserid(daoRequest.getMemberDingtalkUserid() == null ? null : daoRequest.getMemberDingtalkUserid().trim());
        daoRequest.setMemberDescription(daoRequest.getMemberDescription() == null ? null : daoRequest.getMemberDescription().trim());
        daoRequest.setTaskCode(daoRequest.getTaskCode() == null ? null : daoRequest.getTaskCode().trim());

        return daoRequest;
    }
}
